package CommonLibrary;

public class CheckersPosition {
	
	public static final boolean isWhitePlayerMotion = true;
	public static final int sizeX = 8;
	public static final int sizeY = 8;
	public static final int emptyCell = 0;
	public static final int whiteChecker = 1;
	public static final int blackChecker = 2;
	public static final int whiteKing = 3;
	public static final int blackKing = 4;

    public static void setSide(int side)
    {
        if(side == 0)
        {
            for(int y = 0; y < 8; y++)
            {
                for(int x = 0; x < 8; x++)
                {
                    if(defaultPositions[x][y] == 1)
                    {
                        defaultPositions[x][y] = 2;
                    }
                    else if(defaultPositions[x][y] == 2)
                    {
                        defaultPositions[x][y] = 1;
                    }
                }
            }
        }
    }

	public static final int[][] defaultPositions = {
		{1, 0, 1, 0, 0, 0, 2, 0},
		{0, 1, 0, 0, 0, 2, 0, 2},
		{1, 0, 1, 0, 0, 0, 2, 0},
		{0, 1, 0, 0, 0, 2, 0, 2},
		{1, 0, 1, 0, 0, 0, 2, 0},
		{0, 1, 0, 0, 0, 2, 0, 2},
		{1, 0, 1, 0, 0, 0, 2, 0},
		{0, 1, 0, 0, 0, 2, 0, 2}
	};

    /*
    public static final int[][] defaultPositions = {
            {0, 0, 0, 0, 0, 0, 0, 0},
            {1, 0, 0, 0, 0, 0, 0, 0},
            {0, 2, 0, 0, 0, 0, 0, 0},
            {0, 0, 0, 0, 0, 0, 0, 0},
            {0, 0, 0, 2, 0, 2, 0, 0},
            {0, 0, 0, 0, 0, 0, 0, 0},
            {0, 0, 0, 0, 0, 2, 0, 0},
            {0, 0, 0, 0, 0, 0, 0, 0}
    };  */
}
